.favorites-page {
  padding: 24px;
  background: #f5f5f5;
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header h2 {
  margin: 0;
  color: #1890ff;
}

.favorites-content {
  display: flex;
  gap: 24px;
  height: calc(100vh - 200px);
}

/* 收藏夹侧边栏 */
.folders-sidebar {
  width: 320px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h4 {
  margin: 0;
  color: #262626;
}

.folder-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.folder-item {
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.folder-item:hover {
  background: #f0f8ff;
  border-color: #d9d9d9;
}

.folder-item.active {
  background: #e6f7ff;
  border-color: #1890ff;
}

.folder-item .ant-list-item-meta-title {
  margin-bottom: 4px;
  font-weight: 500;
}

.folder-item .ant-list-item-meta-description {
  font-size: 12px;
}

/* 确保按钮可以正常点击 */
.folder-item .ant-list-item-action {
  z-index: 1000 !important;
  position: relative;
  pointer-events: auto;
}

.folder-item .ant-dropdown-trigger {
  z-index: 1001 !important;
  pointer-events: auto;
}

.folder-item .ant-btn {
  z-index: 1002 !important;
  pointer-events: auto;
  position: relative;
}

/* 确保整个操作区域可以接收点击事件 */
.folder-item .ant-list-item-action > * {
  pointer-events: auto;
}

/* 确保下拉菜单和弹出框在最上层 */
.ant-dropdown {
  z-index: 1050 !important;
}

.ant-popover {
  z-index: 1050 !important;
}

.ant-popconfirm {
  z-index: 1050 !important;
}

.ant-modal {
  z-index: 1060 !important;
}

/* 论文内容区域 */
.papers-content {
  flex: 1;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.content-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-header h3 {
  margin: 0;
  color: #262626;
}

.paper-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.paper-list .ant-list-item {
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.paper-list .ant-list-item:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #d9d9d9;
}

.paper-list .ant-list-item-meta-title {
  margin-bottom: 8px;
}

.paper-list .ant-list-item-meta-title a {
  color: #1890ff;
  font-weight: 500;
  text-decoration: none;
}

.paper-list .ant-list-item-meta-title a:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.paper-list .ant-list-item-meta-description {
  color: #666;
  line-height: 1.5;
}

.paper-list .ant-list-item-action {
  margin-left: 16px;
}

/* 移动论文模态框 */
.move-paper-content {
  padding: 16px 0;
}

.move-paper-content .folder-list {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.move-paper-content .folder-card {
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.move-paper-content .folder-card:hover {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .folders-sidebar {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .favorites-content {
    flex-direction: column;
    height: auto;
  }
  
  .folders-sidebar {
    width: 100%;
    height: 300px;
  }
  
  .papers-content {
    height: 500px;
  }
  
  .page-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* 空状态样式 */
.ant-empty {
  padding: 60px 20px;
}

/* 标签样式 */
.ant-tag {
  border-radius: 12px;
  font-size: 12px;
}

/* 按钮样式 */
.ant-btn-text {
  border: none;
  box-shadow: none;
}

.ant-btn-text:hover {
  background: #f0f0f0;
}

/* 表单样式 */
.ant-modal .ant-form-item-label {
  font-weight: 500;
}

.ant-modal .ant-input,
.ant-modal .ant-input:focus {
  border-radius: 6px;
}

.ant-modal .ant-btn {
  border-radius: 6px;
}

/* 滚动条样式 */
.folder-list::-webkit-scrollbar,
.paper-list::-webkit-scrollbar {
  width: 6px;
}

.folder-list::-webkit-scrollbar-track,
.paper-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.folder-list::-webkit-scrollbar-thumb,
.paper-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.folder-list::-webkit-scrollbar-thumb:hover,
.paper-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}